import request from '@/utils/request'
//离职继承

//离职继承列表
export function quitList(data: any) {
    return request({
        url: '/scrm-api/console/work/quit/list',
        method: 'POST',
        params: data
    })
}

//离职继承客户明细
export function custDetail(data: any) {
    return request({
        url: '/scrm-api/console/work/quit/cust-detail',
        method: 'POST',
        data
    })
}

//离职继承客户群明细
export function custGroupDetail(data: any) {
    return request({
        url: '/scrm-api/console/work/quit/cust-group-detail',
        method: 'POST',
        data
    })
}

//客户移交
export function handOverCust(data: any) {
    return request({
        url: '/scrm-api/console/work/quit/handover-cust',
        method: 'POST',
        data: data
    })
}
//客户移交异步
export function handOverCustAsync(data: any) {
    return request({
        url: '/scrm-api/console/work/quit/async-cust-task-create',
        method: 'POST',
        data: data
    })
}

//客户群移交异步
export function handOverCustGroupAsync(data: any) {
    return request({
        url: '/scrm-api/console/work/quit/async-cust-group-task-create',
        method: 'POST',
        data: data
    })
}

//客户群移交
export function handOverCustGroup(data: any) {
    return request({
        url: '/scrm-api/console/work/quit/handover-cust-group',
        method: 'POST',
        data: data
    })
}

//同步企微数据
export function quitSync() {
    return request({
        url: '/scrm-api/console/work/quit/sync',
        method: 'post'
    })
}

//离职-是否移交中
export function isHandovering(data:any) {
    return request({
        url: '/scrm-api/console/work/quit/is-handovering',
        method: 'post',
        data
    })
}
